/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2022-11-22
 * Time: 18:38
 */
abstract class A {
    String name;
    String sex;
    public void play() {

    }
}

class B extends A {
    @Override
    public void play() {
        System.out.println("打篮球！");
    }
}
interface IShape {
    void func();
}
class C implements IShape {
    @Override
    public void func() {
        System.out.println("接口的实现");
    }
}

public class TestDemo {
    public static void drawMap(IShape iShape) {
        iShape.func();
    }
    public static void main(String[] args) {
        drawMap(new C());
    }
}
